<?php
/**
 * Created by PhpStorm.
 * User: soulmates
 * Date: 2017/7/25
 * Time: 下午8:44
 */
namespace app\home\validate;
use  think\Validate;
class User extends Validate
{
    protected $rule = [
        'username' =>'require|max:25|unique:user',
        'password'=>'require|max:5'
    ];
    protected  $message = [
        'username.require'=>'用户名不能为空!',
        'password.require'=>'密码不能为空!',
        'telephone.require'=>'手机号不能为空!',
        'email.require'=>'邮箱不能为空',
        'captcha.require'=>'验证码不能为空',
        'password.min'=>'密码不符合要求'

    ];


}